package com.kuang.demo3;

public class Client {
    public static void main(String[] args) {
        Host host = new Host();
        ProxyInvoctionHandler pih = new ProxyInvoctionHandler();

        pih.setRent(host);

        Rent proxy = (Rent) pih.getProxy();

        proxy.rent();
    }
}
